public class Fruit{
    String name="F2";
    public static  Fruit f = new Fruit();
    public Fruit (){
        System.out.println("构造函数。。。");
    }
    static {
        System.out.println("静态代码块。。。");
    }

    {
        System.out.println("代码块。。。");
    }

    public String getName() {
        System.out.println("F2");
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
